package com.msb.mall.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;


@EnableRedisHttpSession
@EnableFeignClients(basePackages = "com.msb.mall.order.feign")
@EnableDiscoveryClient
@MapperScan("com.msb.mall.order.dao")
@SpringBootApplication
public class MallOrderApplication {



    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(MallOrderApplication.class, args);
        System.out.println("数据库url："+context.getEnvironment().getProperty("user.userName"));
        System.out.println();
    }

}
